package com.qf.set.domain;

import java.util.Date;
import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.qf.common.annotation.Excel;
import com.qf.common.core.domain.BaseEntity;

/**
 * 部门信息对象 tms_department
 */
public class TmsDepartment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 部门ID */
    private Long id;

    /** 部门名称 */
    @Excel(name = "部门名称")
    private String deptName;

    /** 父部门ID */
    private Long parentId;

    /** 部门状态 */
    @Excel(name = "部门状态", readConverterExp = "启用=启用,禁用=禁用")
    private String deptStatus;

    /** 创建人 */
    private String creator;

    /** 备注 */
    private String remark;

    /** 子部门列表（用于树形结构） */
    private List<TmsDepartment> children; // 新增子部门列表

    // getter和setter方法（原有方法保持不变，新增children的getter和setter）
    public List<TmsDepartment> getChildren() {
        return children;
    }

    public void setChildren(List<TmsDepartment> children) {
        this.children = children;
    }

    // 其他原有getter和setter方法...
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setDeptName(String deptName)
    {
        this.deptName = deptName;
    }

    public String getDeptName()
    {
        return deptName;
    }

    public void setParentId(Long parentId)
    {
        this.parentId = parentId;
    }

    public Long getParentId()
    {
        return parentId;
    }

    public void setDeptStatus(String deptStatus)
    {
        this.deptStatus = deptStatus;
    }

    public String getDeptStatus()
    {
        return deptStatus;
    }

    public void setCreator(String creator)
    {
        this.creator = creator;
    }

    public String getCreator()
    {
        return creator;
    }

    public void setRemark(String remark)
    {
        this.remark = remark;
    }

    public String getRemark()
    {
        return remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deptName", getDeptName())
                .append("parentId", getParentId())
                .append("deptStatus", getDeptStatus())
                .append("createTime", getCreateTime())
                .append("creator", getCreator())
                .append("remark", getRemark())
                .append("children", getChildren())
                .toString();
    }
}
